package com.onlinevideo.service;

import com.onlinevideo.entity.Message;

import java.util.List;

public interface MessageService {
    int insert(Message message);

    int delete(Long id);

    int deleteByUserRead(Long userId);

    int update(Message message);

    Message queryById(Long id);

    List<Message> queryAll();

    List<Message> queryByUserId(Long userId,Integer haveRead);
}
